import { Link } from 'react-router-dom';
import { useSelector } from 'react-redux';
import styles from './styles.module.css';
const footer = () => {
  const { footerList } = useSelector((state) => state.nav);
  return (
    <div className={styles.footer}>
      © 2021 BY
      {footerList.map((item, index) => (
        <Link to={item.url} key={index}>
          {item.text}
        </Link>
      ))}
    </div>
  );
};
export default footer;
